﻿using System;

namespace RockHopper.Common.Events
{
    public static class DomainEvents
    {
        public static event EventHandler<PaceUnitsChangedEventArgs> PaceUnitsChanged;
        public static event EventHandler<VdotChangedEventArgs> VdotChanged;

        public static void RaisePaceUnitsChanged(object sender, PaceUnitsChangedEventArgs args)
        {
            if (PaceUnitsChanged != null)
                PaceUnitsChanged(sender, args);
        }

        public static void RaiseVdotChanged(object sender, VdotChangedEventArgs args)
        {
            if (VdotChanged != null)
                VdotChanged(sender, args);
        }
    }
}
